/*
 * @Author: wangchao
 * @Date: 2024-10-08 08:49:26
 * @LastEditors: wangchao
 * @LastEditTime: 2024-10-08 12:59:18
 * @FilePath: \JD-RTT-Driver\applications\u_vfd.h
 * @Description:
 * Copyright (c) 2024 by Bingshan Guardian, All Rights Reserved.
 */

#ifndef _U_VFD_H_
#define _U_VFD_H_

#include <rtdevice.h>
#include <rtthread.h>
#include "board.h"

/**
 *  APP运行模式定义
 */
typedef enum
{
    VFD_HOLD_FREQ,
    VFD_HOLD_FREQ_WAIT,
    VFD_HOLD_FLOW,
    VFD_HOLD_FLOW_WAIT,
} VAR_VFD_CTRL_STEP;

//
#define VFD_MAX_FREQ 5000U
#define VFD_P1_ADDR  11U
#define VFD_P2_ADDR  22U
#define VFD_N1_ADDR  33U
#define VFD_N2_ADDR  44U

#endif